<?
	//error_reporting(E_ALL);
	require_once "../../commons/includes/authentication.inc"; 	
	require_once "../../commons/includes/connection.inc"; 
		
	$table = $_POST['Table']; 
	$keyValue = $_POST['KeyValue'] ;
	$key = $_POST['Key'] ;
	$Db = $_POST['Db'] ;
	
	if("$keyValue"!=""){
		$sql = "DELETE FROM $table where $key=$keyValue";
		$res = &sqlExecute($sql,$Db);
		
		/* * /
		echo $sql;
		print_r($res);
		/**/
	}else echo "keyValue=''";
	
	echo "
	<script>
		opener.opener.location = opener.opener.location ;
		opener.close();
		window.close();
	</script>";
	
?>
